---

#- name:  deploy Open Stack compute node
- name:  deploy Kushal temp box
  hosts: fed-cloud11.cloud.fedoraproject.org
  user:  root
  sudo:  yes
  gather_facts: True

  vars_files: 
   - /srv/web/infra/ansible/vars/global.yml
   - "{{ private }}/vars.yml"
   - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
#   - /srv/web/infra/ansible/vars/fedora-cloud.yml
#   - "{{ private }}/files/openstack/passwords.yml"

  roles:
  - base
  - rkhunter
  - nagios_client
  - hosts
  - fas_client
  - collectd/base
  - sudo
#  - cloud_compute

  tasks:
  - include: "{{ tasks }}/yumrepos.yml"
  - include: "{{ tasks }}/2fa_client.yml"
  - include: "{{ tasks }}/motd.yml"

  handlers:
  - include: "{{ handlers }}/restart_services.yml"
  - include: "{{ handlers }}/semanage.yml"

#  - authorized_key: user=root key="{{ lookup('file', files + '/fedora-cloud/fed09-ssh-key.pub') }}"
